-
Notifications
You must be signed in to change notification settings - Fork 78
fix: remove docker container after exit #1197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove docker container after exit #1197
Conversation
|
I'm not very familiar with Docker. Does this have any performance impact on subsequent runs? (I think it probably doesn't, but want to check) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1197 +/- ##
=======================================
Coverage 46.05% 46.05%
=======================================
Files 11 11
Lines 4942 4942
Branches 1345 1345
=======================================
Hits 2276 2276
Misses 2666 2666
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm going to show my ignorance. Are the Should we be using |
|
Are the docker run commands intended to modify an existing container? Should we be using It's better to prepare build environment using Github Actions tool, for example to do |
dhower-qc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, though from the discussion it sounds like there could be some follow on work to make this even better.
|
@dhower-qc , yes, it's just fix of critical issue. |
fd532c9 to
7d52618
Compare
ThinkOpenly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jordancarlin relieved me of my ignorance by pointing out that each of the "run" commands has side-effects in the local directory which is mounted as a volume in the container. Thus, each "run" still achieves its purpose, and the container itself is of no use afterwards, and removing it is appropriate.
The build script leaves multiple containers in a host environment. This update adds an `--rm` option to remove a Docker container after a command is executed. Signed-off-by: Evgeny Semenov <[email protected]>
7d52618 to
203bccd
Compare
The build script leaves multiple containers in a host environment. This update adds an
--rmoption to remove a Docker container after a command is executed.Steps to reproduce the issue